package com.prs.crm.domain.ca.work;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

/**
 * @author YangHao
 * @E-Mail:450098606@qq.com
 * @qq:450098606
 * @version 创建时间：2012-3-28 15:18:41 库存维护
 */
@Entity
@Table(name = "ca_inventoryMaintain")
public class InventoryMaintain extends BaseEntity {

	private static final long serialVersionUID = 1346065733699360633L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	/**
	 * 单号
	 */
	private String im_billNumber;
	/**
	 * 维护人
	 */
	private String im_maintainPerson;
	/**
	 * 维护日期
	 */
	private Date im_maintainDate;
	/**
	 * 维护原因
	 */
	private String im_maintainReason;
	
	@ManyToOne
	private DemandInventory demand;
	
	public DemandInventory getDemand() {
		return demand;
	}

	public void setDemand(DemandInventory demand) {
		this.demand = demand;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getIm_billNumber() {
		return im_billNumber;
	}

	public void setIm_billNumber(String imBillNumber) {
		im_billNumber = imBillNumber;
	}

	public String getIm_maintainPerson() {
		return im_maintainPerson;
	}

	public void setIm_maintainPerson(String imMaintainPerson) {
		im_maintainPerson = imMaintainPerson;
	}

	public Date getIm_maintainDate() {
		return im_maintainDate;
	}

	public void setIm_maintainDate(Date imMaintainDate) {
		im_maintainDate = imMaintainDate;
	}

	public String getIm_maintainReason() {
		return im_maintainReason;
	}

	public void setIm_maintainReason(String imMaintainReason) {
		im_maintainReason = imMaintainReason;
	}

}
